- HTML Boilerplate
Basic Tags๐
- Html tag: Creates an HTML document
- Head tag: Sets off the title & other info that isn't displayed
- Body tag: Sets off the visible portion of the document
- Title tag: Puts name of the document in the title bar; when bookmarking pages, this is what is
bookmarked
Body attributes (only used in email newsletters)๐
- Body bgcolor: Sets background color, using name or hex value
- Body text: Sets text color, using name or hex value
- Body link: Sets color of links, using name or hex value
- Body vlink:Sets color of visited links, using name or hex value
- Body alink: Sets color of active links (while mouse-clicking)
FORMATTING ๐
- Paragraph tag : Creates a new Paragraph
- Br tag: A Inserts a line break
- Blockquote tag: Puts content in a quote - indents text from both sides
- Div tag: Used to format block content with CSS
- Span tag: Used to format inline content with CSS
LISTS ๐
- Ul tag: Creates an unordered list
- Ol tag: Creates an ordered list (start=xx,
where xx is a counting number)
- Li tag: Encompasses each list item
- Dl tag: Creates a definition list
- Dt tag: Precedes eachdefintion term
- Dd tag: Precedes eachdefintion
Text Tags๐
- Pre tag: Creates preformatted text
- Heading tags: Creates headlines -- H1=largest, H6=smallest
- B tag: Creates bold text (should use <strong> instead)
- I tag: Creates italicized text (should use <em> instead)
- Tt tag: Creates typewriter-style text
- code tag: Used to define source code, usually monospace
- Cite tag: Creates a citation, usually processed in italics
- Address tag: Creates address section, usually processed in italics
- Em tag: Emphasizes a word (usually processed in italics)
- Strong tag: Emphasizes a word (usually processed in bold)
- Font size tag: Sets size of font - 1 to 7 (should use CSS instead)
- Font color tag: Sets font color (should use CSS instead)
- Font face tag: Defines the font used (should use CSS instead)
Graphical elements๐
- Hr tag: Inserts a horizontal rule
- Hr size tag: Sets size (height) of horizontal rule
- Hr width tag: Sets width of rule (as a % or absolute pixel length)
- Hr noshade tag: Creates a horizontal rule without a shadow
- Image tag: Adds image; it is a separate file located at the URL
- Image tag with align attribute: Aligns image left/right/center/bottom/top/middle (use CSS)
- Image tag with border attribute: Sets size of border surrounding image (use CSS)
- Image tag with height attribute: Sets height of image, in pixels
- Image tag with width attribute: Sets width of image, in pixels
- Image tag with alt attribute: Sets the alternate text for browsers that can't
process images (required by the ADA)